home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
029a
/
lite411q.zip
/
SKELETON.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-07-25
|
3KB
|
79 lines
'============================================================================
'
' SKELETON.BAS - Empty ProWindows(tm) User Interface Shell
' ProWindows(tm) LITE 4.00
' (c) Copyright 1988-1991 DSE Software Publishing
'
' PURPOSE:
' This module provides a basic framework for applications
' developed with ProWindows(tm) LITE.
'
' NOTE:
' It is the developers responsibility to provide additional code
' to make this module work.
'
'==========================================================================
REM $DYNAMIC
DEFINT A-Z
' =======================================================================
' INCLUDE modules should follow
' =======================================================================
REM $INCLUDE: 'lite.bi'
CLEAR , , 4096 ' Set aside additional stack space
' =======================================================================
' These constants should be defined in ALL applications.
' =======================================================================
CONST WINMEMSIZE% = 8191 ' Window memory, used by 'VirMem%()'
CONST SCRNMEMSIZE% = 4096 ' Screen storage memory, used by 'scrn%()'
CONST MAXWINDOWS% = 30 ' Maximum number of windows
' =======================================================================
' Be sure to DIM your variables
' =======================================================================
DIM SHARED VirMem(WINMEMSIZE) AS INTEGER
DIM SHARED scrn(SCRNMEMSIZE) AS INTEGER
DIM SHARED vcb(MAXWINDOWS) AS vircb
DIM SHARED wcb(MAXWINDOWS) AS wincb
DIM SHARED wcbndx(MAXWINDOWS) AS INTEGER
' =======================================================================
' Program initialization code
' =======================================================================
ReCycleMode 1 ' enable "Video Recycling" saves 24K
InitPro ' initialize ProWindows
MouseInstalled = CheckMouse(buttons) ' install the mouse driver
' =======================================================================
' Your code goes here
' =======================================================================
MainMenu:
DO
SELECT CASE GetEvent(0)
CASE 15 ' <CR> was pressed
END
CASE 16 ' <ESC> was pressed
END
CASE 17 ' nothing happened for 1 second
SOUND 32767, 1 ' just to let you know there is life
CASE 18 ' <F1> was pressed
BEEP
CASE ELSE
END SELECT
LOOP